<?php
/**
 * Enter description here ...
 * @author Micou13630
 *
 */
class RequiredIfValidator extends ValidatorType {
	
	/**
	 * Enter description here ...
	 */
	public function RequiredIfValidator($exp, $errorMessage = null) {
		parent::ValidatorType(Constant::VALIDATOR_TYPE_REQUIREDIF);
		
		$this->expression = new FunctionType(array('item','validator','value'), $exp);
		$this->errorMessage = $errorMessage;
	}
}
?>